<?php

namespace paymch\modules\test\controllers;

use Yii;
use yii\web\Controller;

/**
 * RefundAlipayController for the `test` module
 */
class RefundAlipayController extends Controller {

    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex() {
        $data = \paymch\models\RefundHandler::trade(0, $msg);
        if (!$data) {
            $data = $msg;
        }
        return \yii\helpers\VarDumper::export($data);
    }

}
